<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>讯都车网——地图</title>
    <style>
        body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
            margin:0;padding:0;
        }
    </style>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.5&ak=8E7E1529d1555d09b3cc9c3503786855"></script>
    <script src="{JS_URL}global.js"></script>
    <script src="{JS_URL}libs/seajs/2.2.0/seajs.js"></script>
    <script src="{JS_URL}libs/config.js"></script>
    <script>
        seajs.use(['mod-map'],function(Map){
            function getParam(name){
                var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
                var r = window.location.search.substr(1).match(reg);
                if (r!=null) return decodeURI(r[2]);
                return null;
            }
            var point = getParam('lang')&&getParam('lat')? getParam('lang')+','+getParam('lat') : unescape(getParam('cityName')),
                name = getParam('name'),
                addr = getParam('addr'),
                phone = getParam('phone'),
                locMap;
            if(point.split(',').length>=2 && point.split(',')[0].substr(0, 1)=='-'){
                point = "山东省济南市";
            }
            locMap = new Map(point);
            locMap.showMap('map',0,name,addr,phone);
        });
    </script>
</head>

<body>
    <div id="map" class="bd" style="width:300px; height: 250px;"></div>
</body>
</html>